package org.rsbot.script.randoms;

import org.rsbot.script.Random;
import org.rsbot.script.ScriptManifest;

@ScriptManifest(authors = { "Qauters", "Gnarly" }, name = "Welcome Screen", version = 1.5)
public class WelcomeScreen extends Random {

	@Override
	public boolean activateCondition() {
		return isWelcomeScreen();
	}

	@Override
	public int loop() {
		atInterface(WELCOME_SCREEN_ID, WELCOME_SCREEN_BUTTON_PLAY);
		while (isWelcomeScreen()) {
			wait(500);
		}
		return -1;
	}

}
